home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / mouser.zip / MOUSER.DOC < prev    next >
Text File  |  1993-01-04  |  2KB  |  56 lines

  1.      MOUSER ver 1.0   This is a set of mouse interface routines.
  2. These routines only read the mouse for input and return that information to
  3. the calling procedure.  These routines DO NOT actually manipulate the screen
  4. or screen cursor.  These are basic routines so that the user can manipulate
  5. the mouse information however he or she like.  The MOUSER unit provides
  6. these variable types, variables, and procedures:
  7.  
  8.     MOUSEMOVE    : record with X and Y motion counters.
  9.  
  10.           mousemove = record
  11.              xmouse : integer;
  12.              ymouse : integer;
  13.           end; {record mousemove}
  14.  
  15.     MOUSEPRESENT : boolean variable set by mouseready function. Tells whether
  16.                    mouse is present.
  17.  
  18.     LEFTBUTTON   : boolean variable. True if left button has been pressed.
  19.                    Important for calling program to reset to false after
  20.                    using.
  21.  
  22.     RIGHTBUTTON  : boolean variable. True if right button has been pressed.
  23.                    Same usage note as LEFTBUTTON.
  24.  
  25.     CENTERBUTTON : boolean variable. True if center button has been pressed.
  26.                    Same usage note as LEFTBUTTON.  Not sure of response on
  27.                    a two button mouse.  Can be deleted for two button mouse
  28.                    if needed.
  29.  
  30.     LASTMOUSE    : Last position of mouse. Set by QUESTIONMOUSE function.
  31.  
  32.     MOUSEREADY   : Function testing whether mouse is present and ready.
  33.  
  34.     MOUSEBUTTONPRESSED : Function testing if a button has been pressed on
  35.                          the mouse.  It will set the appropriate button
  36.                          variables if the a button has been pressed.
  37.  
  38.     QUESTIONMOUSE : Function testing if mouse has input.  Works like
  39.                     KEYPRESSED function in TP.
  40.  
  41.     MOUSEMOVED : Procedure to read mouse motion counters. It will return
  42.                  any movement since the last time it was called.
  43.  
  44. These procedures have been tested on LOGITECH mice (three button mouse) and
  45. MICROSOFT Two-button mice, both using the MOUSE driver.  The following files
  46. are in this set:
  47.  
  48.     MOUSER.PAS : unit containing the mouse routines.
  49.  
  50.     MOUSER.DOC : This file.
  51.  
  52.     MOUSDEMO.PAS : Short demo program to demonstrate the mouse routines.
  53.                    The program echos back the motion counters and the status
  54.                    of the mouse button variables.  RIGHTBUTTON or CENTERBUTTON
  55.                    terminates program.
  56.